package bjut.core.context;

import bjut.core.exception.BeansException;

/**
 * @Author: zhuzhiming
 * @Date: 2022/6/1 23:34
 */
public class ClassPathXmlApplicationContext extends AbstractXmlApplicationContext {


    private String[] configLocations;

    public ClassPathXmlApplicationContext() {
    }

    public ClassPathXmlApplicationContext(String configLocation) throws BeansException {
        this(new String[]{configLocation});
    }

    public ClassPathXmlApplicationContext(String[] configLocations) throws BeansException {
        this.configLocations = configLocations;
        refresh();
    }


    @Override
    protected String[] getConfigLocations() {
        return configLocations;
    }
}
